<template>
  <div>
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
      <el-form-item label="车辆id">
        <el-input v-model="formInline.cid" placeholder="车辆id"></el-input>
      </el-form-item>
      <el-form-item label="出口id">
        <el-input v-model="formInline.gid" placeholder="出口id"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="add">添加</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: "AddView",
  data() {
    return {
      formInline:{},
    }
  }, methods: {
    add(){
      this.axios.post("add",this.formInline).then(res=>{
        if (res.data.code==200){
          this.$message.success(res.data.msg);
        }else{
          this.$message.error(res.data.msg);
        }
      })
    }
  }, created() {

  }
}
</script>

<style scoped>

</style>